const routes = [
  {
    path: '/test',
    name: 'Test',
    component: () => import('../views/test'),
    meta: { title: '测试' }
  },
  {
    path: '/account',
    redirect: '/login',
    name: 'Account',
    component: () => import('../layout/AccountLayout/index.vue'),
    children: [
      {
        path: '/login',
        name: 'Login',
        component: () => import('../views/login'),
        meta: { title: '登录' }
      },
      {
        path: '/register',
        name: 'Register',
        component: () => import('../views/register'),
        meta: { title: '注册' }
      },
      {
        path: '/forgetpassword',
        name: 'ForgetPassword',
        component: () => import('../views/forgetpassword')
      }
    ]
  },
  {
    path: '/',
    component: () => import('@/layout/CommonLayout/index.vue'),
    meta: { title: '主页' },
    children: [
      {
        path: '/',
        name: 'Home',
        component: () => import('@/views/home')
      },
      {
        path: '/meetingorder',
        name: 'MeetingOrder',
        component: () => import('@/views/meetingorder'),
        meta: { title: '预约会议' }
      },
      {
        path: '/meetinglist',
        name: 'MeetingList',
        component: () => import('@/views/meetinglist'),
        meta: { title: '会议列表' }
      },
      {
        path: '/meetinginfo',
        name: 'MeetingInfo',
        component: () => import('@/views/meetinginfo'),
        meta: { title: '会议信息' }
      },
      {
        path: '/contact',
        name: 'Contact',
        component: () => import('@/views/contact'),
        meta: { title: '联系人' }
      },
      {
        path: '/notify',
        name: 'Notify',
        component: () => import('@/views/notify'),
        meta: { title: '通知' }
      },
      {
        path: '/feedback',
        name: 'FeedBack',
        component: () => import('@/views/feedback'),
        meta: { title: '意见反馈' }
      },
      {
        path: '/helpcenter',
        name: 'HelpCenter',
        component: () => import('@/views/helpcenter'),
        meta: { title: '热门问题' }
      },
      {
        path: '/helpcenterdetail',
        name: 'HelpCenterDetail',
        component: () => import('@/views/helpcenterdetail'),
        meta: { title: '帮助中心' }
      },
      {
        path: '/usercenter',
        redirect: '/userinfo',
        name: 'UserCenter',
        component: () => import('@/layout/UserCenterLayout'),
        meta: { title: '用户中心' },
        children: [
          {
            path: '/userinfo',
            name: 'UserInfo',
            component: () => import('@/views/userinfo'),
            meta: { title: '用户信息' }
          },
          {
            path: '/accountbind',
            name: 'AccountBind',
            component: () => import('@/views/accountbind'),
            meta: { title: '账号绑定' }
          }
        ]
      }
    ]
  },
  {
    path: '/meetingroom',
    name: 'MeetingRoom',
    component: () => import('@/views/meetingroom')
  },
  {
    path: '/subtitlesedit',
    name: 'SubtitlesEdit',
    component: () => import('@/views/subtitlesedit')
  }
]

export default routes
